<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学员信息</title>
    <link rel="stylesheet" href="/css/index.css">
</head>
<body>
    <h2>学员信息</h2>
    <table border="1">
        <tr><td>ID</td><td>姓名</td><td>年龄</td><td>性别</td><td>    邮箱</td>  <td> 操作</td></tr>
        <% for(let i=0;i<data.length;i++){ %>
        <tr>
            <td><%= data[i]._id %></td>
            <td><%= data[i].name %></td>
            <td><%= data[i].age %></td>
            <td><%= data[i].gender %></td>
            <td><%= data[i].email %></td>
            <td>
                <a href="/student/<%= data[i]._id %>/edit">编辑</a>
                &nbsp;&nbsp;
                <a href="/student/<%= data[i]._id %>/delete">删除</a>
            </td></tr>
        <% } %>
    </table>

    <script src="/js/index.js"></script>
</body>
</html>